package com.aaa.controller;

import com.aaa.entity.DO.RentExpireExamine;
import com.aaa.entity.result.Result;
import com.aaa.service.RentExpireExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：陈凯歌
 * @date ：
 * @description：租金到期操作表Controller
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/examine")
public class RentExpireExamineController {

    @Autowired
    private RentExpireExamineService service;

    @PostMapping("/select")
    public Result getExamine(Integer id){

        return service.getAll(id);
    }
    
    /**
     * create by: 陈凯歌
     * description: 根据前端传入对象修改
     * create time: 2021/2/2 16:30
     * 
      * @Param: null
     * @return 
     */
    
    @PostMapping("/update")
    public Result upExamine(@RequestBody RentExpireExamine rentExpireExamine){
        return service.upExamine(rentExpireExamine);
    }
}
